﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FiscalFolderNewForm.aspx.cs"
    Inherits="SisLegal.Expedient.FiscalFolderNewForm1" MasterPageFile="~/Site.Master" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <script src="<%= Page.ResolveClientUrl("~/Public/js/plugins/formatter/jquery.formatter.min.js") %>" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $("input[id$='txtFechaInicio']").datepicker({
            todayBtn: "linked",
            keyboardNavigation: false,
            forceParse: false,
            calendarWeeks: true,
            autoclose: true
        });
        $('#ctl00_MainContent_txtNroFiscalFolder').formatter({
            'pattern': '{{9999999999}}-{{9999}}-{{9999}}-{{99}}'
        });


        $("#btnSearchArticle").click(function () {
            $.ajax({
                type: "POST",
                url: "FiscalFolderNewForm.aspx/GetArticleDetail",
                data: '{"txtArticle":' + parseInt($("input[id$='txtArticle']").val()) + '}',
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (rst) {
                    $("input[id$='txtArticleDetail1']").val(rst.d.NameGenerico)
                    $("input[id$='txtArticleDetail2']").val(rst.d.NameSubGenerico)
                    $("input[id$='txtArticleDetail3']").val(rst.d.Name)
                }
            });
            return false;
        });

        $("input[id$='txtArticle']")
    });
    </script>
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox">
                <div class="ibox-title">
                    <h5>Nueva Carpeta Fiscal</h5>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-lg-12">
                            <div class="panel ">
                                <div class="panel-heading">
                                    <div class="panel-options">
                                        <ul class="nav nav-tabs">
                                            <li class="active"><a href="#tab-1" data-toggle="tab" aria-expanded="true">Identificación
                                                del Proceso</a></li>
                                            <li class=""><a href="#tab-2" data-toggle="tab" aria-expanded="false">Detalle del Proceso</a></li>
                                            <li class=""><a href="#tab-3" data-toggle="tab" aria-expanded="false">Personal a Cargo</a></li>
                                        </ul>
                                    </div>
                                </div>
                                <div class="panel-body">
                                    <div class="tab-content">
                                        <div class="tab-pane active" id="tab-1">
                                            <div class="form-horizontal" role="form">
                                                <div class="form-group">
                                                    <label class="control-label col-sm-2" for="txtNroExped">
                                                        Nro Carpeta Fiscal:</label>
                                                    <div class="col-sm-3">
                                                        <asp:TextBox ID="txtNroFiscalFolder" runat="server" class="form-control" placeholder="1234567890-2015-12-0"></asp:TextBox>
                                                    </div>
                                                    <label class="control-label col-sm-1" for="txtNroExped">
                                                        Año:</label>
                                                    <div class="col-sm-1">
                                                        <asp:TextBox ID="txtYear" runat="server" class="form-control" placeholder="Año"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="control-label col-sm-2" for="txtNroExped">
                                                        Fiscalia:</label>
                                                    <div class="col-sm-4">
                                                        <asp:TextBox ID="txtFiscalia" runat="server" class="form-control" placeholder="Fiscalia"></asp:TextBox>
                                                    </div>
                                                    <label class="control-label col-sm-2" for="txtNroExped">
                                                        Fiscal a Cargo:</label>
                                                    <div class="col-sm-4">
                                                        <asp:TextBox ID="txtFiscalCargo" runat="server" class="form-control" placeholder="Fiscal a Cargo"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="control-label col-sm-2" for="txtNroExped">
                                                        Policia a Cargo:</label>
                                                    <div class="col-sm-10">
                                                        <asp:TextBox ID="txtPoliciaCargo" runat="server" class="form-control" placeholder="Policia a Cargo"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="control-label col-sm-2" for="txtNroExped">
                                                        Denunciante:</label>
                                                    <div class="col-sm-4">
                                                        <asp:TextBox ID="txtDenunciante" runat="server" class="form-control" placeholder="Denunciante"></asp:TextBox>
                                                    </div>
                                                    <label class="control-label col-sm-2" for="txtNroExped">
                                                        Denunciado:</label>
                                                    <div class="col-sm-4">
                                                        <asp:TextBox ID="txtDenunciado" runat="server" class="form-control" placeholder="Denunciado"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="control-label col-sm-2" for="txtNroExped">
                                                        Agraviado:</label>
                                                    <div class="col-sm-4">
                                                        <asp:TextBox ID="txtAgraviado" runat="server" class="form-control" placeholder="Agraviado"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="control-label col-sm-2" for="txtNroExped">
                                                        Participación Seal:</label>
                                                    <div class="col-sm-4">
                                                        <asp:DropDownList ID="DDL_Participation_Seal" runat="server" class="form-control">                                                            
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="control-label col-sm-2" for="txtNroExped">
                                                        Documento Inicial:</label>
                                                    <div class="col-sm-10">
                                                        <asp:TextBox ID="txtDocumentoInicial" runat="server" class="form-control" placeholder="Documento Inicial"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="control-label col-sm-2" for="txtNroExped">
                                                        Fecha de los Hechos:</label>
                                                    <div class="col-sm-4">
                                                        <asp:TextBox ID="txtFechaHechos" runat="server" class="form-control fecha" placeholder="Fecha de los Hechos"></asp:TextBox>
                                                    </div>
                                                    <label class="control-label col-sm-2" for="txtNroExped">
                                                        Fecha de Noticicacion a Seal:</label>
                                                    <div class="col-sm-4">
                                                        <asp:TextBox ID="txtFechaNoticicacionSeal" runat="server" class="form-control fecha" placeholder="Fecha de Noticicacion a Seal"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="control-label col-sm-2" for="txtNroExped">
                                                        Delito(Ingrese Articulo) ej. 111:</label>
                                                    <div class="col-sm-2">
                                                        <asp:TextBox ID="txtArticle" runat="server" class="form-control" placeholder="Articulo"></asp:TextBox>
                                                    </div>
                                                    <div class="col-sm-2">
                                                        <button class="btn btn-primary" id="btnSearchArticle">Buscar Delito</button>                                                        
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="control-label col-sm-2" for="txtNroExped">
                                                    </label>
                                                    <div class="col-sm-10">
                                                        <div class="form-group">
                                                            <label class="control-label col-sm-3" for="txtNroExped">
                                                                Delito Generico/Falta:</label>
                                                            <div class="col-sm-9">
                                                                <asp:TextBox ID="txtArticleDetail1" runat="server" class="form-control" placeholder="Delito Generico/Falta" ReadOnly></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="control-label col-sm-3" for="txtNroExped">
                                                                Delito Sub-Generico:</label>
                                                            <div class="col-sm-9">
                                                                <asp:TextBox ID="txtArticleDetail2" runat="server" class="form-control" placeholder="Delito Sub-Generico" ReadOnly></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="control-label col-sm-3" for="txtNroExped">
                                                                Deletito específico:</label>
                                                            <div class="col-sm-9">
                                                                <asp:TextBox ID="txtArticleDetail3" runat="server" class="form-control" placeholder="Deletito específico" ReadOnly></asp:TextBox>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="control-label col-sm-2" for="txtNroExped">
                                                        Monto de Pretensión:</label>
                                                    <div class="col-sm-2">
                                                        <asp:TextBox ID="txtMontoPretension" runat="server" class="form-control" placeholder="Monto de Pretensión"></asp:TextBox>
                                                    </div>
                                                    <div class="form-group">
                                                        <label class="control-label col-sm-2" for="txtNroExped">
                                                            Moneda:</label>
                                                        <div class="col-sm-2">
                                                            <asp:DropDownList ID="DDL_Money" runat="server" class="form-control">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="tab-pane" id="tab-2">
                                            <div class="form-horizontal" role="form">
                                                <div class="form-group">
                                                    <label class="control-label col-sm-2" for="txtNroExped">
                                                        Fecha de Inicio:</label>
                                                    <div class="col-sm-10">
                                                        <asp:TextBox ID="txtFechaInicio" runat="server" class="form-control fecha" placeholder="Fecha de Inicio"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="control-label col-sm-2" for="txtNroExped">
                                                        Tipo Proceso:</label>
                                                    <div class="col-sm-10">
                                                        <asp:DropDownList ID="DDL_Type_Process" runat="server" class="form-control">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="control-label col-sm-2" for="txtNroExped">
                                                        Calificacion de Contingencias:</label>
                                                    <div class="col-sm-10">
                                                        <asp:DropDownList ID="DDL_Contingency_Rate" runat="server" class="form-control">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="control-label col-sm-2" for="txtNroExped">
                                                        Hecho de lo Denunciado(Sumilla):</label>
                                                    <div class="col-sm-10">
                                                        <asp:TextBox ID="txtSumilla" runat="server" class="form-control" placeholder="Nro de Expediente"
                                                            Rows="5" TextMode="multiline"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="control-label col-sm-2" for="txtNroExped">
                                                        Observaciones:</label>
                                                    <div class="col-sm-10">
                                                        <asp:TextBox ID="txtObservaciones" runat="server" class="form-control" placeholder="Observaciones"
                                                            Rows="5" TextMode="multiline"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="tab-pane" id="tab-3">
                                            <div class="form-horizontal" role="form">
                                                <div class="form-group">
                                                    <label class="control-label col-sm-2" for="txtNroExped">
                                                        Persona Asiganda:</label>
                                                    <div class="col-sm-10">
                                                        <asp:DropDownList ID="DDL_Assigned_Person" runat="server" class="form-control">
                                                        </asp:DropDownList>
                                                        
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="control-label col-sm-2" for="txtNroExped">
                                                        Estudio Juridico y/o Abogado Asignado:</label>
                                                    <div class="col-sm-10">
                                                        <asp:DropDownList ID="DDL_Lawyer" runat="server" class="form-control">                                                            
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="control-label col-sm-2" for="txtNroExped">
                                                        Orden de Servicio:</label>
                                                    <div class="col-sm-10">
                                                        <asp:TextBox ID="txtOrdenServicio" runat="server" class="form-control" placeholder="Orden de Servicio"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="control-label col-sm-2" for="txtNroExped">
                                                        Nro de Recibo o Factura:</label>
                                                    <div class="col-sm-10">
                                                        <asp:TextBox ID="txtNroRecibo" runat="server" class="form-control" placeholder="Nro de Recibo o Factura"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="control-label col-sm-2" for="txtNroExped">
                                                        Terminos de Referencia:</label>
                                                    <div class="col-sm-10">
                                                        <asp:TextBox ID="txtTerminosReferencia" runat="server" class="form-control" placeholder="Terminos de Referencia"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="control-label col-sm-2" for="txtNroExped">
                                                        Abogado Asignado de Seal:</label>
                                                    <div class="col-sm-10">
                                                        <asp:TextBox ID="txtAbogadoSeal" runat="server" class="form-control" placeholder="Abogado Asignado de Seal"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="control-label col-sm-2" for="txtNroExped">
                                                        Practicante de Seal:</label>
                                                    <div class="col-sm-10">
                                                        <asp:TextBox ID="txtPracticanteSeal" runat="server" class="form-control" placeholder="Practicante de Seal"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="control-label col-sm-2" for="txtNroExped">
                                                        Ubicacion Fisica del Expediente:</label>
                                                    <div class="col-sm-10">
                                                        <asp:DropDownList ID="DDL_Physical_Location_Files" runat="server" class="form-control">
                                                            
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-horizontal" role="form">
                                        <div class="form-group">
                                            <div class="col-sm-offset-2 col-sm-10">
                                                <asp:Button ID="btnSave" runat="server" Text="Grabar" OnClick="btnSave_Click" class="btn btn-primary" />
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
